import factory.StoreFactory;
import factory.impl.AmericanStoreFactory;
import factory.impl.ItalianStoreFactory;

public class Client {
    public static void main(String[] args) {
        //创建意大利工厂
        StoreFactory factory = new ItalianStoreFactory();
        //美式工厂
        //StoreFactory factory = new AmericanStoreFactory();

        System.out.println(factory.createCoffee().getName());
        factory.createDesert().show();
    }
}
